package HLLib.purchase;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLLib.base.HLICallback;
import HLLib.base.HLString;
import HLLib.base.HLUtil;

public class HLMessage extends HLLibObject implements HLICallback{
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_PURCHASE, HLClassManager_H.LIB_CLASS_PURCHASE_Message);
    }

	private static HLMessage _message;
	public static HLMessage shareMessageSend(){
		if(_message == null){
			_message = new HLMessage();
		}
		return _message;
	}
	public void Send(HLString des ,HLString content){
		curRun.CallbackSuccess(CALLBACK_SEND_MESSAGE_SUCCESS, null);
		HLUtil.SendMessage(content, des);
	}
	public static void Clear(){
		if(_message != null){
			_message = null;
		}
	}
}
